//
//  TKL_mineCell.m
//  TKL_EnPro
//
//  Created by 雅恩三河科技 on 2018/12/13.
//  Copyright © 2018年 MrZhang. All rights reserved.
//

#import "TKL_mineCell.h"

@interface TKL_mineCell ()
@property(nonatomic,strong)UIImageView* leftIV;
@property(nonatomic,strong)UILabel* titleLab;
@end

@implementation TKL_mineCell
#pragma mark - getter and setter
-(UIImageView *)leftIV
{
    if (!_leftIV) {
        _leftIV=[UIImageView new];
        
        _leftIV.x=WFCGFloatX(10);
        
    }
    return _leftIV;
}
-(UILabel *)titleLab
{
    if (!_titleLab) {
        _titleLab=[UILabel new];
        _titleLab.x=WFCGFloatX(40);
        _titleLab.y=0;
        _titleLab.width=200;
        _titleLab.height=WFCGFloatY(45);
        _titleLab.font=SYSTEMFONT(15);
        _titleLab.text=@"名字";
        _titleLab.textColor=HEXCOLOR(@"#666666");
    }
    return _titleLab;
}
#pragma mark - event
#pragma mark - method
#pragma mark - life
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.contentView.backgroundColor = Main_Color_White;
        [self.contentView addSubview:self.leftIV];
        [self.contentView addSubview:self.titleLab];
        
    }
    return self;
}
-(void)setItemDic:(NSDictionary *)itemDic
{
    _itemDic=itemDic;
    _titleLab.text=[itemDic objectForKey:@"name"];
    _leftIV.image=[UIImage imageNamed:[itemDic objectForKey:@"image"]];
    
    
    _leftIV.y=(WFCGFloatY(50)-_leftIV.image.size.height)/2-3;
    _leftIV.width=_leftIV.image.size.width;
    _leftIV.height=_leftIV.image.size.height;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}
#pragma mark - delegate
@end
